import { Create, Update, Delete, Get, GetAll, GetTreeList } from '@/services/crud';
const ModuleModel = {
    namespace: 'Module',
    state: {
        current: {},
    },
    effects: {
        * setCurrent({ payload }, { put }) {
            yield put({
                type: 'set',
                payload,
            });
        },
    },
    reducers: {
        set(state, action) {
            return { ...state, current: action.payload };
        },
    },
};
export default ModuleModel;